package com.Endurancer.manager.service;

import java.util.List;

import com.Endurancer.common.core.domain.AjaxResult;
import com.Endurancer.manager.domain.Likes;
import com.Endurancer.manager.domain.dto.LikesDto;
import com.Endurancer.manager.domain.vo.LikesVo;

/**
 * 点赞Service接口
 *
 * @author Endurancer
 * @date 2025-02-04
 */
public interface ILikesService
{
    /**
     * 查询点赞
     *
     * @param likeId 点赞主键
     * @return 点赞
     */
    public Likes selectLikesByLikeId(Long likeId);

    /**
     * 查询点赞列表
     *
     * @param likes 点赞
     * @return 点赞集合
     */
    public List<Likes> selectLikesList(Likes likes);

    /**
     * 新增点赞
     *
     * @param likes 点赞
     * @return 结果
     */
    public int insertLikes(Likes likes);

    /**
     * 修改点赞
     *
     * @param likes 点赞
     * @return 结果
     */
    public int updateLikes(Likes likes);

    /**
     * 批量删除点赞
     *
     * @param likeIds 需要删除的点赞主键集合
     * @return 结果
     */
    public int deleteLikesByLikeIds(Long[] likeIds);

    /**
     * 删除点赞信息
     *
     * @param likeId 点赞主键
     * @return 结果
     */
    public int deleteLikesByLikeId(Long likeId);

    Boolean isLike(LikesDto likesDto);
    List<LikesVo> selectUserLikes(LikesDto likesDto);


}
